from langchain.text_splitter import NLTKTextSplitter

texts = "..."
text_splitter = NLTKTextSplitter()
docs = text_splitter.split_text(texts)